package org.Game;

public class Vector2 {
	public float m_x;
	public float m_y;
	
	public Vector2(float x, float y)
	{
		m_x = x;
		m_y = y;
	}
	
	public static void Normalize(Vector2 v)
	{
		float lenth = v.m_y * v.m_y + v.m_x * v.m_x;
		lenth = (float)Math.sqrt(lenth);
		v.m_x = v.m_x / lenth;
		v.m_y = v.m_y / lenth;
	}
	
	static float Dot(Vector2 v1, Vector2 v2)
	{
		return v1.m_x * v2.m_x + v1.m_y * v2.m_y;
	}
	
	//static Vector2 Cross(Vector2 v1, Vector2 v2)
	//{
		//return new Vector2(,);
	//}
}
